package cn.stylefeng.guns.modular.gridsystem.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 网关上报分数表
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_upload_score")
public class BizUploadScore extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 网关id
     */
    @TableField("gateway_id")
    private Integer gatewayId;

    /**
     * 网关通道
     */
    @TableField("gateway_channel")
    private String gatewayChannel;

    /**
     * 分数
     */
    @TableField("score")
    private String score;

    /**
     * 创建日期
     */
    @TableField("created_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @TableField("access_token")
    private String accessToken;

    @TableField("device_id")
    private Integer deviceId;

}
